<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Function and Constant Documentation</title>
<meta name="description" content="Documentation for the constants and functions available to be used by the scientific calculator">
<meta name="keywords" content="functions,constants">
<link rel="shortcut icon" href="http://ostermiller.org/favicon.ico" type="image/x-icon">

</head>
<body>

<h1>Documentation for the Scientific Calculator</h1>
<p><a href="http://ostermiller.org/calc/calculator.html">Return to the scientific calculator</a></p>
<h2><a name="constants"></a>Constants</h2>

<table border="1">
<tbody><tr><td align="right">ans</td><td>The last calculated result</td></tr>
<tr><td align="right">PI</td><td>pi = 3.14159265...</td></tr>
<tr><td align="right">E</td><td>e = 2.71828182...</td></tr>
<tr><td align="right">LOG2E</td><td>log of e base 2</td></tr>
<tr><td align="right">LOG10E</td><td>log of e base 10</td></tr>
<tr><td align="right">LN2</td><td>log of 2 base e</td></tr>
<tr><td align="right">LN10</td><td>log of 10 base e</td></tr>
<tr><td align="right">SQRT2</td><td>square root of 2</td></tr>
<tr><td align="right">SQRT1_2</td><td>square root of 1/2</td></tr>
</tbody></table>

<p><a href="http://ostermiller.org/calc/calculator.html">Return to the scientific calculator</a></p>

<h2><a name="functions"></a>Functions</h2>

<table border="1">
<tbody><tr><td align="right">abs(a)</td><td>the absolute value of a</td></tr>
<tr><td align="right">acos(a)</td><td>arc cosine of a</td></tr>
<tr><td align="right">asin(a)</td><td>arc sine of a</td></tr>
<tr><td align="right">atan(a)</td><td>arc tangent of a</td></tr>
<tr><td align="right">atan2(a,b)</td><td>arc tangent of a/b</td></tr>
<tr><td align="right">ceil(a)</td><td>integer closest to a and not less than a</td></tr>
<tr><td align="right">cos(a)</td><td>cosine of a</td></tr>
<tr><td align="right">exp(a)</td><td>exponent of a</td></tr>
<tr><td align="right">floor(a)</td><td>integer closest to and not greater than a</td></tr>
<tr><td align="right">log(a)</td><td>log of a base e</td></tr>
<tr><td align="right">max(a,b)</td><td>the maximum of a and b</td></tr>
<tr><td align="right">min(a,b)</td><td>the minimum of a and b</td></tr>
<tr><td align="right">pow(a,b)</td><td>a to the power b</td></tr>
<tr><td align="right">random()</td><td>pseudorandom number in the range 0 to 1</td></tr>
<tr><td align="right">round(a)</td><td>integer closest to a </td></tr>
<tr><td align="right">sin(a)</td><td>sine of a</td></tr>
<tr><td align="right">sqrt(a)</td><td>square root of a</td></tr>
<tr><td align="right">tan(a)</td><td>tangent of a</td></tr>
</tbody></table>

<p><a href="http://ostermiller.org/calc/calculator.html">Return to the scientific calculator</a></p>


<div style="padding:0.2cm;"><a href="http://ostermiller.org/calc/">More converters, calculators, and other JavaScript goodies</a></div>
<div style="padding:0.2cm;text-align:right;"><a href="http://ostermiller.org/">ostermiller.org</a> (<a href="http://ostermiller.org/siteindex.html">site index</a>)</div>
<div style="padding:0.2cm;"><p>Copyright <a href="http://ostermiller.org/contact.pl?regarding=Javascript+Calc" class="mail">Stephen Ostermiller</a> 2007-2006</p></div>


</body></html>